package com.heima.apis.article;

import com.heima.model.common.dtos.app.ArticleDto;
import com.heima.model.common.dtos.app.ArticlePageDto;
import com.heima.model.common.dtos.common.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient("leadnews-article")
public interface IArticleClient {
    /**
     * 保存和修改app端文章信息
     * @param articleDto
     * @return
     */
    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto articleDto);
    /**
     * 查询app端所有文章信息
     */
    @GetMapping("api/v1/article/findAll")
    public ResponseResult findAll(@RequestBody ArticlePageDto articlePageDto);
}
